package com.kfgj.hkp.dao.user.impl;

import com.kfgj.hkp.common.dataaccess.mybatis.AbstractMyBatisDao;
import com.kfgj.hkp.dao.user.IPortUserDbDao;
import com.kfgj.hkp.entity.user.PortUserEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class PortUserDbDaoImpl extends AbstractMyBatisDao<PortUserEntity,Long> implements IPortUserDbDao {

    @Override
    public int deleteAll () {
        return this.getSqlSession ().delete (this.mapperNamespace+"deleteAll");
    }

    @Override
    public List<PortUserEntity> findPortUserByLittlePhone (String caller) {
        return this.getSqlSession ().selectList (this.mapperNamespace+"findPortUserByLittlePhone",caller);
    }
}
